package pl.devfest.connect;

import android.accounts.Account;
import android.accounts.AccountManager;
import android.content.Context;

public class AccountAuth {

	Context context;

	public AccountAuth(Context context) {
		this.context = context;
	}

	public void connect() {
		AccountManager accountManager = AccountManager.get(context);
		Account[] accounts = accountManager.getAccounts();
		for (Account account : accounts) {
			System.out.println("name = " + account.name);
		}
	}

}
